import { createApp } from 'vue'
import App from './App.vue'
import "@/assets/css/style.css"
import router from '@/router/index.js'
import '@/assets/css/common.css'
// 导入动画库
import 'animate.css'
import axios from 'axios'
import vueAxios from 'vue-axios'
import {createPinia} from 'pinia'
const app = createApp(App)
const pinia = createPinia() 
import  piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

//挂载路由
pinia.use(piniaPluginPersistedstate)
app.use(router)
app.use(pinia)
app.mount('#app')
app.use(vueAxios,axios)
app.provide('$root', 'http://localhost:8080')
app.provide('$axios',axios)



